Instance 0

Class0.getLabelBounds(FemLabel referenceLabel,FarragoRepos repos)#1{
        for (FemLabel label : labels) {
            // Ignore label aliases since they are "pointers" to base
            // labels.  So, only the timestamps of base labels are
            // meaningful in determining which label is the oldest.
            if (label.getParentLabel() != null) {
                continue;
            }
            String timestamp = label.getCreationTimestamp();

            // Ignore new labels that haven't been created yet
            if (timestamp == null) {
                continue;
            }
            Timestamp labelTimestamp = Timestamp.valueOf(timestamp);
            int rc = referenceTimestamp.compareTo(labelTimestamp);

            // Find the newest label older than the reference label
            if ((rc > 0)
                && ((lowerBound == null)
                    || (labelTimestamp.compareTo(lowerBound0)))
            {
                lowerBound = labelTimestamp;

                // Find the oldest label newer than the reference label
            else if (
                (rc < 0)
                && ((upperBound == null)
                    || (labelTimestamp.compareTo(upperBound0)))
            {
                upperBound = labelTimestamp;
            }
        }
}


Instance 1

Class0.getTable(String[] names)#3{
        if ((labelTimestamp != null&& (table instanceof FemLocalTable)) {
            FemAnnotatedElement annotated = (FemAnnotatedElementtable;
            Timestamp objectCreateTimestamp =
                Timestamp.valueOf(annotated.getCreationTimestamp());
            if (objectCreateTimestamp.compareTo(labelTimestamp0) {
                throw FarragoResource.instance()
                .ValidatorAccessObjectNonVisibleToLabel.ex(
                    getRepos().getLocalizedObjectName(table));
            }
        }
        addDependency(table, action);
        if (table.getVisibility() == null) {
            throw new FarragoUnvalidatedDependencyException();
        }
        RelDataType rowType = createTableRowType(table);
        if (table instanceof FemLocalTable) {
            int nColumnsTotal = rowType.getFieldCount();
            int nColumnsActual = nColumnsTotal;

            // If table is undergoing ALTER TABLE ADD COLUMN,
            // hide the new (last) column.
            DependencySupplier supplier =
                getRepos().getCorePackage().getDependencySupplier();
            for (CwmDependency dep : supplier.getSupplierDependency(table)) {
                if (dep.getNamespace() instanceof FemRecoveryReference) {
                    FemRecoveryReference recoveryRef =
                        (FemRecoveryReferencedep.getNamespace();
                    if (recoveryRef.getRecoveryType()
                        == RecoveryTypeEnum.ALTER_TABLE_ADD_COLUMN)
                    {
                        --nColumnsActual;
                        break;
                    }
                }
            }

            // If a label is set, hide any columns which were created
            // after the label
            if (labelTimestamp != null) {
                while (nColumnsActual > 1) {
                    FemStoredColumn column =
                        (FemStoredColumntable.getFeature().get(
                            nColumnsActual - 1);
                    Timestamp columnCreateTimestamp =
                        Timestamp.valueOf(column.getCreationTimestamp());
                    if (columnCreateTimestamp.compareTo(labelTimestamp0) {
                        --nColumnsActual;
                    else {
                        // Once we see the first visible column, everything
                        // before it is guaranteed to be visible since
                        // we only allow creation of columns at the end.
                        break;
                    }
                }
            }

            // Now truncate the row if necessary
            if (nColumnsActual < nColumnsTotal) {
                rowType =
                    getFarragoTypeFactory().createStructType(
                        RelOptUtil.getFieldTypeList(rowType).subList(
                            0,
                            nColumnsActual),
                        RelOptUtil.getFieldNameList(rowType).subList(
                            0,
                            nColumnsActual));
            }
        }
            FarragoCatalogUtil.getTableAllowedAccess(table);
}


Instance 2

Class10.timeSheetChecker(HttpServletRequest request,HttpServletResponse response)#1{
                        for (int i = 0; i < 5; i++) {
                            Timestamp realTimeDate = UtilDateTime.addDaysToTimestamp(timesheetDate, i);
                            Timestamp nowStartDate = UtilDateTime.getDayStart(now);
                            //compare week and compare date
                            if ((timesheetDate.compareTo(weekStart<= 0&& (realTimeDate.compareTo(nowStartDate0)) {
                                //check time entry
                                List<GenericValue> timeEntryList = timesheetMap.getRelated("TimeEntry", UtilMisc.toMap("partyId", partyId, "timesheetId",timesheetId, "fromDate",realTimeDate), null, false);
                                //check EmplLeave
                                List<GenericValue> emplLeaveList = EntityQuery.use(delegator).from("EmplLeave").where("partyId", partyId, "fromDate", realTimeDate).cache(true).queryList();
                                if (UtilValidate.isEmpty(timeEntryList&& UtilValidate.isEmpty(emplLeaveList)) {
                                    Map<String, Object> noEntryMap = new HashMap<String, Object>();
                                    noEntryMap.put("timesheetId", timesheetId);
                                    noTimeEntryList.add(noEntryMap);
                                    break;
                                }
                            }
                        }
}


Instance 3

Class40.compare(Object o1,Object o2,byte dt1,byte dt2)#39{
        return ((Timestamp)o1).compareTo((Timestamp)o2);
}


Instance 4

Class0.compare(final Object obj1,final Object obj2)#0{
         return ((Timestamp)obj1).compareTo((Timestamp)obj2);
}


Instance 5

Class0.compare(Object arg0,Object arg1)#21{
      return ((Timestamparg0).compareTo((Timestamparg1);
}